<template>
	<view class="item">
		<!-- 封面 -->
		<view class="cover">
			<image src="../../static/img/nft.jpg" mode=""></image>
		</view>
		<view class="info">
			<!-- 标题 -->
			<view class="title">
				修勾币
			</view>
			<!-- 价格 -->
			<view class="price">
				<text>2000</text>积分
			</view>
			<!-- 购买 -->
			<view class="shop">
				<view class="sold">
					已售出<text>50</text>
				</view>
				<view class="exchange">
					<u-button text="兑换" color="#fa3534" size="mini"></u-button>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
	.item {
		background-color: #F9F9F9;
		width: 45%;
		border-radius: 20rpx;
		overflow: hidden;
		margin-bottom: 60rpx;

		.cover {
			height: 340rpx;

			image {
				width: 100%;
				height: 100%;
			}
		}

		.info {
			padding: 20rpx 20rpx;

			.title {
				font-size: $bsin-basin-font;
				font-weight: bold;
			}

			.price {
				color: red;
				padding: 20rpx 0;
			}

			.shop {
				display: flex;
				justify-content: space-between;
				align-items: center;

				.sold {
					color: #777;
				}
			}
		}
	}
</style>
